package cn.htu.edu.entity;

import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author dakai
 * @since 2024-05-22
 */
@Data
@Accessors(chain = false) // 禁用链式调用
public class Person implements Serializable {

    /**
     * 主键
     */
    @ExcelProperty(value = "id",index = 0)
    private String id;

    /**
     * 年龄
     */
    @ExcelProperty(value = "age",index = 1)
    private Integer age;

    /**
     * 关联字段
     */
    @ExcelProperty(value = "oid",index = 2)
    private String oid;
}
